<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

/*
  |********************************************************************************************
  | 				M e m b e r    H e l p e r s
  |********************************************************************************************
 */
/*
  |----------------------------------------------------------------------------------------------
  | Checking User Permission													By Wat, 14-11-2011
  |----------------------------------------------------------------------------------------------
 */
if (!function_exists('is_logedin')) {

    function is_loggedin() {

        $ci = & get_instance();
        $ci->load->model('auth_model', 'auth');

        if ($ci->auth->is_loggedin()) {
            return TRUE;
        } else {
            return FALSE;
        }
    }

}

if (!function_exists('is_admin')) {

    function is_admin() {

        $ci = & get_instance();
        $ci->load->model('auth_model', 'auth');

        if ($ci->auth->is_admin()) {
            return TRUE;
        } else {
            return FALSE;
        }
    }

}


/*
 |----------------------------------------------------------------------------------------------
*/

/* End of file */